home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 2 / Gold Medal Software Volume 2 (Gold Medal) (1994).iso / os2 / cenvi2.arj / ASCII.CMD < prev    next >
OS/2 REXX Batch file  |  1993-06-14  |  506b  |  19 lines

  1. EXTPROC CEnvi
  2. /***************************************************
  3.  *** Ascii.cmd - Display the ASCII character set ***
  4.  ***************************************************/
  5.  
  6. #define  ROW_COUNT      20
  7. #define  COL_COUNT      13
  8.  
  9. Unprintables = "\a\b\t\r\n\033"
  10. for ( row = 0; row < ROW_COUNT; row++ ) {
  11.    for ( col = 0; col < COL_COUNT; col++ ) {
  12.       c = ROW_COUNT*col + row
  13.       if c < 256
  14.          printf("%c-%-3d ",(NULL==strchr(Unprintables,c))?c:'.',c)
  15.    }
  16.    printf("\n")
  17. }
  18.  
  19.